﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CommandMgr.Entities;
using CommandMgr.ServiceMgr;
using System.Net.Http;
using System.Web.Http;

namespace CommandMgr.Api.Controllers
{
    public class CommandQueueController : ApiController
    {
        CommandService service = new CommandService();

        public bool Get(string id)
        {
            return service.DequeueCommand(id);
        }

        public void Post(string id)
        {
            service.QueueCommand(id);
        }

    }
}
